﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MixScript.BLL.FI;
using System.Data;
using System.Globalization;

namespace MixScriptWeb.Accounting.ReportObject
{
    public partial class rpt_listJournal_x : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String type = Request.QueryString["t"].ToString();
            String perAwal = Request.QueryString["aw"].ToString();
            String perAkhir = Request.QueryString["ak"].ToString();
            String Curr = Request.QueryString["c"].ToString();
            Int32 post = Convert.ToInt32(Request.QueryString["p"].ToString());
            DateTime newAwal = Convert.ToDateTime(perAwal, new CultureInfo("ru-RU"));
            DateTime newAkhir = Convert.ToDateTime(perAkhir, new CultureInfo("ru-RU"));
            Report rpt = new Report();
            DataTable dt = new DataTable();
            dt = rpt.ListJournal(type, newAwal, newAkhir, Curr, post);

            
            gvList.DataSource = dt;
            gvList.DataBind();

        }
    }
}